<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="shortcut icon" type="image/x-icon" href="files/favicon.ico" />
	<link rel="stylesheet" href="qpstyle/css.css" />
	<script type="text/javascript" src="qpscript/jquery.min.js"></script>
	<script type="text/javascript" src="qpscript/all.js"></script>
	<title>返回码大全</title>
</head>
<body>
	<iframe src="top.html" frameborder="0" width="100%" height="72" class="top-frame"></iframe>
	<div class="content clearfix">
		<h2 class="title">1. 后台API统一返回码</h2>
		<h3 class="row">基本格式：{"ret": 0, "msg"...}</h3>
		<div>ret返回值定义如下：</div>
		<table class="tb01">
			<tr>
				<td class="key">0</td>
				<td>正确返回。</td>
			</tr>
			<tr>
				<td class="key">1</td>
				<td>服务器繁忙，通常是后台出错。</td>
			</tr>
			<tr>
				<td class="key">2</td>
				<td>登录态过期。</td>
			</tr>
			<tr>
				<td class="key">3</td>
				<td>url非法，通常是签名跟参数不匹配。</td>
			</tr>
			<tr>
				<td class="key">4</td>
				<td>签名错误</td>
			</tr>
			<tr>
				<td class="key">5</td>
				<td>没有登录态</td>
			</tr>
			<tr>
				<td class="key">6</td>
				<td>非POST方式</td>
			</tr>
			<tr>
				<td class="key">8</td>
				<td>IP 错诨</td>
			</tr>
			<tr>
				<td class="key">9</td>
				<td>APPID错误，一般是后台没有进行配置</td>
			</tr>
		</table>
		<h2 class="title">2. 支付返回码</h2>
		<h3 class="row">基本格式：{"ret": ****, "msg": ********}</h3>
		<table class="tb01">
			<tr>
				<td class="key">1000</td>
				<td>请求参数错误</td>
			</tr>
			<tr>
				<td class="key">1001</td>
				<td>系统繁忙</td>
			</tr>
			<tr>
				<td class="key">1002</td>
				<td>登录校验失败</td>
			</tr>
		</table>
		<h2 class="title">3. 接口机返回码</h2>
		<h3 class="row">基本格式：{"ret": ******}</h3>
		<table class="tb01">
			<tr>
				<td class="key">100000</td>
				<td>登录校验失败</td>
			</tr>
			<tr>
				<td class="key">100001</td>
				<td>请求参数错误或格式不正确服务超时</td>
			</tr>
			<tr>
				<td class="key">100003</td>
				<td>内部错误或后台服务超时</td>
			</tr>
			<tr>
				<td class="key">100007</td>
				<td>IP校验失败     （这里校验的是第三方服务器的IP）</td>
			</tr>
			<tr>
				<td class="key">100008</td>
				<td>IP列表为空</td>
			</tr>
			<tr>
				<td class="key">100011</td>
				<td>请求支付平台接口超时,获取token出错</td>
			</tr>
		</table>
	</div>
	<iframe src="footer.html" frameborder="0" class="footer-frame"></iframe>
	<script type="text/javascript">
		G.goTop();
	</script>
</body>
</html>